﻿using MediatR;

namespace Service.Auth.Domain.Events
{


    /// <summary>
    /// 角色添加菜单权限事件
    /// </summary>
    public class RoleAddPermissionsDomainEvent(long roleId, List<long> permissionsIds) : INotification
    {
        public long RoleId { get; private set; } = roleId;
        public List<long> PermissionsIds { get; private set; } = permissionsIds;
    }


    /// <summary>
    /// 
    /// </summary>
    /// <param name="RoleId"></param>
    /// <param name="RoleNum"></param>
    /// <param name="RoleName"></param>
    public record RoleChangeInfoDomainEvent(long RoleId, string RoleNum, string RoleName) : INotification;
}
